<section class="sidebar">
    <!-- Sidebar user panel -->
    <div class="user-panel">
        <div class="pull-left image">
            <img src="__ADMINSTYLE__/img/avatar3.png" class="img-circle" alt="User Image" />
        </div>
        <div class="pull-left info">
            <p>你好, Admin</p>

            <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
        </div>
    </div>
    <!-- sidebar menu: : style can be found in sidebar.less -->
    <ul class="sidebar-menu">
        <li class="Index">
            <a href="{:U('Admin/Index/index')}">
                <i class="fa fa-dashboard"></i> <span>首页</span>
            </a>
        </li>
        <li class="treeview Posts Type">
            <a href="#">
                <i class="fa fa-bar-chart-o"></i>
                <span>文章管理</span>
                <i class="fa fa-angle-left pull-right"></i>
            </a>
            <ul class="treeview-menu">
                <li><a href="{:U('/Admin/Posts/index')}"><i class="fa fa-angle-double-right"></i> 所有文章</a></li>
                <li><a href="{:U('/Admin/Posts/create')}"><i class="fa fa-angle-double-right"></i> 添加文章</a></li>
                <li><a href="{:U('/Admin/Type/index')}"><i class="fa fa-angle-double-right"></i> 分类管理</a></li>

            </ul>
        </li>
        <li class="Comments">
            <a href="{:U('/Admin/Comments/index')}">
                <i class="fa fa-th"></i> <span>评论管理</span>
            </a>
        </li>
        <li class="treeview Users">
            <a href="#">
                <i class="fa fa-laptop"></i>
                <span>用户管理</span>
                <i class="fa fa-angle-left pull-right"></i>
            </a>
            <ul class="treeview-menu">
                <li><a href="{:U('/Admin/Users/index')}"><i class="fa fa-angle-double-right"></i> 所有用户</a></li>
                <li><a href="{:U('/Admin/Users/create')}"><i class="fa fa-angle-double-right"></i> 添加用户</a></li>
            </ul>
        </li>
        <li class="Settings">
            <a href="{:U('/Admin/Settings/index')}">
                <i class="fa fa-edit"></i> <span>网站设置</span>
            </a>
        </li>
    </ul>
</section>
<script>
    $(function(){
        $(".{$Think.const.CONTROLLER_NAME}").addClass('active');
    })
</script>